home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Conversion / Convert_PICT / Testing / hex_tests / rgn=clip=nonrect.hex < prev    next >
Text File  |  1992-11-27  |  2KB  |  62 lines

  1. % header
  2. 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  3. % end of app-specific header
  4. 00FF 0000 0000 00FF 00FF    % pict size (bogus) and top left bottom right
  5. 11 01                        % verson
  6. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  7. %
  8. %    Test clip region:
  9. %        This takes the prototypical rectangle test, and
  10. %        puts a clipregion around it so not all of it should
  11. %        be visible.
  12. %        This should complement all the other tests using opcode 01 to put
  13. %        clips around the whole image
  14. %
  15. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  16.  
  17. %    Define a non-rectangular clipping region.   This should reveal only parts of the rectangles
  18. %    
  19. 01 002c 000a 000a 00D0 00D0
  20.     000a 000a 0070 7fff
  21.     0040 0040 00D0 7fff
  22.     0070 000a 0070 7fff
  23.     00D0 0040 00D0 7fff
  24.     7fff
  25.  
  26. 30 0000 0000 00FF 00FF        % draw bounding rect
  27.  
  28.  
  29. 02 AA AA AA AA AA AA AA AA % fill pat
  30. 09 FF FF FF FF FF FF FF FF % pn pat
  31. 0A AA 55 AA 55 AA 55 AA 55 % back pat
  32.  
  33. % draw lines along its four sides
  34. 20 0010 0000 0010 00FF
  35. 20 0000 0010 00FF 0010
  36. 20 0050 0000 0050 00FF
  37. 20 0000 0050 00FF 0050
  38.  
  39. 20 0000 0080 00FF 0080
  40. 20 0000 00C0 00FF 00C0
  41.  
  42. 20 0080 0000 0080 00FF
  43. 20 00C0 0000 00C0 00FF
  44.  
  45.  
  46. % Frame a rectangle
  47. 30 0010 0010 0050 0050
  48.  
  49. % paint an adjacent one
  50. 31 0010 0080 0050 00C0
  51.  
  52. % try to invert the painted one (ha ha)
  53. 33 0010 0080 0050 00C0
  54.  
  55. % fill one below one
  56. 34 0080 0080 00C0 00C0
  57.  
  58. % erase a different one 
  59. 32 0080 0010 00C0 0050
  60.  
  61. FF    % end
  62.